﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;

namespace Dominar.Controllers
{
    public class BaseController: Controller
    {
        protected bool ConsultarDisponibilidadDominio(string dominio, string region)
        {
            string url = @"http://www." + dominio + region;
            WebRequest request = WebRequest.Create(url);

            try
            {
                WebResponse response = request.GetResponse();
                return false;
            }
            catch (Exception ex)
            {
                return true;
            }
        }
    }
}